import request from '@/utils/request'

// 查询系统配置列表
export function listSlSysConfig(query) {
  return request({
    url: '/projects/SlSysConfig/list',
    method: 'get',
    params: query
  })
}

// 查询系统配置详细
export function getSlSysConfig(id) {
  return request({
    url: '/projects/SlSysConfig/' + id,
    method: 'get'
  })
}

// 新增系统配置
export function addSlSysConfig(data) {
  return request({
    url: '/projects/SlSysConfig',
    method: 'post',
    data: data
  })
}

// 修改系统配置
export function updateSlSysConfig(data) {
  return request({
    url: '/projects/SlSysConfig',
    method: 'put',
    data: data
  })
}

// 删除系统配置
export function delSlSysConfig(id) {
  return request({
    url: '/projects/SlSysConfig/' + id,
    method: 'delete'
  })
}

// 刷新redis配置信息
export function updateRedisCache(data) {
  return request({
    url: '/projects/SlSysConfig/updateRedisCache',
    method: 'put',
    data: data
  })
}


